package auto.app.service;

import auto.app.controller.from.connectionConfigurationFrom.ConnectionConfigurationAdd;
import auto.app.controller.from.connectionConfigurationFrom.ConnectionConfigurationPageFrom;
import auto.app.controller.from.connectionConfigurationFrom.ConnectionConfigurationUpdate;
import auto.app.controller.info.ConnecitonInfo.ConnectionConfiguraDetailInfo;
import auto.app.controller.info.ConnecitonInfo.ConnectionConfiguraPageInfo;
import auto.app.exetion.MainExection;
import auto.app.model.ConnectionConfiguration;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 数据库管理 服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-10-10
 */
public interface ConnectionConfigurationService extends IService<ConnectionConfiguration> {

    public Boolean addConnectionConfiguration(ConnectionConfigurationAdd connectionConfigurationAdd) throws MainExection;

    public ConnectionConfiguraDetailInfo ConnectionConfigurationDetail(String connectionId) throws MainExection;

    public Boolean connectionConfigurationUpdate(ConnectionConfigurationUpdate connectionConfigurationUpdate) throws MainExection;

    public ConnectionConfiguraPageInfo connectionConfigurationList(ConnectionConfigurationPageFrom connectionConfigurationPageFrom);

    public Boolean connectionConfigurationDel(String connectionId) throws MainExection;

    public Boolean connectionConfigurationTest(String connectionId) throws MainExection, ClassNotFoundException;

    //修改数据库默认配置
    public Boolean defaultUpdateConfiguration(String connectionId) throws MainExection;


}
